package top.callname.service;

import top.callname.bean.AdminBean;
import top.callname.bean.AdminPageList;
import top.callname.bean.RspInfoBean;

public interface AdminService {

	AdminBean adminLogin(String username,String passwd);
	
	AdminBean adminRegist(AdminBean adminBean);
	
	AdminPageList getAdminByPage(int pageNow);
	
	/**
	 * 删除用户
	 * @param pid
	 * @return RspInfoBean
	 */
	RspInfoBean deleteTeacher(Integer pid);
	
	/**
	 * 修改用户信息
	 * @param adminBean
	 * @return RspInfoBean
	 */
	RspInfoBean updateUserInfo(AdminBean adminBean);
	
	AdminBean getAdminByPid(Integer pid);
	

	/**
	 * 更新关系
	 * @param pid
	 * @param cids
	 * @return RspInfoBean
	 */
	RspInfoBean updateAdminClass(Integer pid , String[] cids );
}
